<div>分析数：{{ count }}</div>
{% for d in data %}
    <div class="  row" style="alignment: center">
        <h5><span class="badge badge-info">成分分析结果</span></h5>
    </div>
    <div class="row">
        <div class="col-sm-3 col-offset-3">
            操作者：{{ d.recorder }}
        </div>
        <div class="col-sm-3 col-offset-6">
            样块出处：{{ d.sample_source }}
        </div>
        <div class="col-sm-3 col-offset-9">
            时间：{{ d.sample_time }}
        </div>

    </div>
    <table class="table">
        <thead>
        <tr>
            <th scope="col">区分</th>
            <th scope="col">Si</th>
            <th scope="col">Fe</th>
            <th scope="col">Cu</th>
            <th scope="col">Mn</th>
            <th scope="col">Mg</th>
            <th scope="col">Zn</th>
            <th scope="col">Ti</th>
            <th scope="col">Ca</th>
            <th scope="col">Sb</th>
            <th scope="col">Sr</th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <th scope="row">标准</th>
            <td style="color: #c69500">6.5~7.5</td>
            <td style="color: #c69500"><0.15</td>
            <td style="color: #c69500"><0.20</td>
            <td style="color: #c69500"><0.05</td>
            <td style="color: #c69500">0.25~0.4</td>
            <td style="color: #c69500"><0.10</td>
            <td style="color: #c69500"><0.20</td>
            <td style="color: #c69500"><0.01</td>
            <td style="color: #c69500"><0.15</td>
            <td style="color: #c69500">0.004~0.012</td>
        </tr>
        <tr>
            <th scope="row">实际值</th>
            <td><span style="color: {{ d.color_si }}">{{ d.si }}</span></td>
            <td><span style="color: {{ d.color_fe }}">{{ d.fe }}</span></td>
            <td><span style="color: {{ d.color_cu }}">{{ d.cu }}</span></td>
            <td><span style="color: {{ d.color_mn }}">{{ d.mn }}</span></td>
            <td><span style="color: {{ d.color_mg }}">{{ d.mg }}</span></td>
            <td><span style="color: {{ d.color_zn }}">{{ d.zn }}</span></td>
            <td><span style="color: {{ d.color_ti }}">{{ d.ti }}</span></td>
            <td><span style="color: {{ d.color_ca }}">{{ d.ca }}</span></td>
            <td><span style="color: {{ d.color_sb }}">{{ d.sb }}</span></td>
            <td><span style="color: {{ d.color_sr }}">{{ d.sr }}</span></td>
        </tr>
        </tbody>
    </table>
{% endfor %}